import request from '../../utils/request.js'
//定义状态管理state
const state = {
	indexCateModel:[]
}

const mutations ={
	changeIndexCateModelMoutains(state,indexCateModel){
		state.indexCateModel = indexCateModel
	}
}
const actions = {
	async getIndexCateModelActions({commit}){
		const res = await request('/getIndexCateModel')
		commit('changeIndexCateModelMoutains',res.indexCateModel)
	}
}
const getters = {
	
}
export default {
	namespaced:true, // 不添加namespaced 只有state是模块化，其他的非模块化
	state,
	mutations,
	actions,
	getters
}